import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MenuComponent } from "./menu/menu.component";
import { RoleComponent } from "./role/role.component";
import { UserComponent } from "./user/user.component";
import { AdminComponent } from "./admin.component";

const routes: Routes = [
  {
    path: "", component: AdminComponent, children:
      [
        { path: "menu", component: MenuComponent },
        { path: "role", component: RoleComponent },
        { path: "user", component: UserComponent }
      ]
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AdminRoutingModule { }



// WEBPACK FOOTER //
// ./src/app/module/admin/admin-routing.module.ts